package top.zackyoung.cloud.feign.exam;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.net.URI;

/**
 * @author ZackYoung
 * @version 1.0
 * @description
 * @date 2021/5/12 20:53
 */
@FeignClient(value = "user",url = "EMPTY")
public interface FeignExamTwo {
    /**
     * 指定url
     * @param urI uri
     * @param name 参数
     * @return 结果
     */
    @RequestMapping("/test/{name}")
    String test(URI urI, @PathVariable String name);
}
